//
//  DDVideoView.h
//  hellomui
//
//  Created by zhangtao on 15/10/30.
//  Copyright © 2015年 zt.td. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "DDifficultViewController.h"
@interface DDVideoView : UIView
@property(nonatomic,strong)AVPlayer *player;
@property(nonatomic,strong)AVPlayerLayer *playerLayer;
@property(nonatomic,strong)UIButton *previousBtn;//上一首
@property(nonatomic,strong)UIButton *nextBtn;
@property(nonatomic,strong)UIButton *playOrPauseBtn;
@property (strong, nonatomic)UIProgressView *progress;//播放进度
@property(nonatomic,strong)UISlider *slider;
@property(nonatomic,strong)AVPlayerItem *playerItem;



@property(nonatomic,strong)UIView *playView;

@property(nonatomic,weak)DDifficultViewController *dificultVC;

@property(nonatomic,strong)NSString *videoId;

@property(nonatomic,strong)UIView *lowView;

@property(nonatomic,strong)UIButton *sBtn;  //quan/ban
@property(nonatomic,strong)UIButton *bigBtn;

@property(nonatomic,strong)UIButton *centerBtn;


@property(nonatomic,assign)NSInteger countTime;

@property(nonatomic,strong)NSString *type;

@property(nonatomic,strong)NSString *_isShoucang;

@property(nonatomic,strong)NSString *bookid;

-(void)over;

//- (id)initWithFrame:(CGRect)frame WithVideoStr:(NSString *)videoStr;

-(void)iniPlay;



@end
